<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>主页</title>
 		      <script type="text/javascript"   th:src="@{/js/jquery.min.js}"></script>
   
   
</head>
<body>
   
   
   
   <div>
   <a id="logout" href="/loginOut">注销当前用户</a>
   <a id="lookTask" href="/getLeaveInfo">查看请假单</a>
   <a id="getTaskByUserId" href="/workflow/getTaskByUserId">查看待执行任务</a>
   <a id="look" href="/workflow/showImg">查看任务执行流程</a>
   
   </div>
   
   
   
   
   
   
   
   <div>
   
   		<span id = "msg"></span>
   	
   		 <script  th:inline="javascript">
    	var result = [[${result}]];
    	
    	
    	
    	var leaveId = [[${leaveId}]];
    	
    	var storage=window.localStorage;
    	if(leaveId != null){
    		storage["leaveId"]=leaveId;
    	}
    	
    	//页面加载后先隐藏提交div
   	 $(function () { 
   		$("#msg").html(result);
   		
   	 $('#look').attr('href','/workflow/showImg?leaveBillId='+storage.leaveId);
   	 });
    	
   
	

    </script>
   </div>
   
  
</body>
</html>